package com.softeem.musicserver.dto;

import com.softeem.musicserver.entity.Ablum;
import com.softeem.musicserver.entity.Music;
import com.softeem.musicserver.entity.Singer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDate;

/**
 * 数据传输对象，用于将与歌曲相关的信息合并到当前javabean中作为传输对象
 * 歌曲+专辑+歌手
 */
@Schema(description = "歌曲详情对象")
@Data
public class MusicDetails {

    @Schema(description = "歌曲id")
    private Integer id;
    @Schema(description = "歌曲名")
    private String name;
    @Schema(description = "歌曲播放地址")
    private String url;
    @Schema(description = "歌曲文件大小（字节）")
    private Integer size;
    @Schema(description = "歌曲持续时长（毫秒）")
    private Integer duration;
    @Schema(description = "歌曲风格/流派")
    private String style;

    @Schema(description = "专辑名")
    private String ablumName;
    @Schema(description = "发行时间")
    private LocalDate releaseDate;
    @Schema(description = "封面图")
    private String ablumImg;

    @Schema(description = "歌手名")
    private String singerName;
}
